package cn.ydxiaoshuai.modules.liteuser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Generated;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenerationTime;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.EntityListeners;
import java.util.Date;

/**
 * @Description: 微信用户专业证书信息表
 * @Author:jiangt
 * @Date:   2023-07-14
 * @Version: V1.0
 */
@Data
@EntityListeners(UserCertificate.class)
@TableName("user_certificate")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="user_certificate对象", description="微信用户专业证书信息表")
public class UserCertificate {
    
	/**主键ID*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键ID")
	private String id;

	/**用户ID 系统生成的*/
	@Excel(name = "用户ID", width = 64)
    @ApiModelProperty(value = "用户ID")
	private String userId;

	/**证书名称*/
	@Excel(name = "证书名称", width = 256)
    @ApiModelProperty(value = "证书名称")
	private String name;

	/**证书文件路径*/
	@Excel(name = "证书文件路径", width = 512)
    @ApiModelProperty(value = "证书文件路径")
	private String path;

	/**证书类型*/
	@Excel(name = "证书类型", width = 32)
    @ApiModelProperty(value = "证书类型")
	private String type;

	/**审核状态*/
	@Excel(name = "审核状态", width = 32)
    @ApiModelProperty(value = "审核状态")
	private String checkStatus;

	/**备注*/
	@Excel(name = "备注", width = 256)
    @ApiModelProperty(value = "备注")
	private String remarks;


	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	@CreatedDate
	private Date createTime;

	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	@LastModifiedDate
	private Date updateTime;

}
